package com.ljf.tijian.controller;

import com.ljf.tijian.AI.DeepSeekService;
import com.ljf.tijian.AI.KimiAiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ai")
public class AiController {

    @Autowired
    DeepSeekService deepSeekService;

    @Autowired
    KimiAiService zhipuAiService;

    @PostMapping("/ollama")
    public String send(@RequestParam("message") String message){
        return deepSeekService.call(message);
    }

    @PostMapping("/kimi")
    public String kimisend(@RequestParam("message") String message){
        return zhipuAiService.call(message);
    }
}
